//
//  BKGDCell.h
//  bestkeep
//
//  Created by 武探 on 2016/11/9.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BKGDCommon.h"
#import "BKGDGradeView.h"
#import "BKGDImagesView.h"
#import "WUCopyLabel.h"
#import "WUImageBrowseView.h"
#import "UIButton+XN.h"

#define BKGDCellRedColor [UIColor colorWithRed:255/255.0 green:16/255.0 blue:16/255.0 alpha:1]
#define BKGDCellLightColor [UIColor colorWithRed:0.533 green:0.533 blue:0.533 alpha:1.00]
#define BKGDCellYellowColor [UIColor colorWithRed:0.953 green:0.596 blue:0.000 alpha:1.00]
#define BKGDCellGrayColor [UIColor colorWithRed:0.294 green:0.298 blue:0.302 alpha:1.00]

///点击税费信息通知
extern NSString *const BKGDTaxCellHelpNotificationKey;

/**
 商品详情页Cell基类
 */
@interface BKGDCell : UITableViewCell

/**
 代表任意代理协议，有子类决定
 */
@property(nonatomic,weak) id delegate;

/**
 由子类实现，数据填充方法
 */
-(void)fillData:(id)data;

/**
 由子类实现，由子类决定此方法用途
 */
-(void)callWithParameter:(id)parameter;

/**
 高度计算，由子类完成
 */
+(CGFloat)computeHeight:(id)data;

@end



/**
 标题
 */
@interface BKGDTextCell : BKGDCell

@end


/**
 商品价格
 */
@interface BKGDPriceCell : BKGDCell

@end




@class BKGDSubPriceCell;
@protocol BKGDSubPriceCellDelegate <NSObject>

@optional
-(void)subPriceCellBecomeVIPDidTouched:(BKGDSubPriceCell*)cell;

@end


/**
 商品价格子项
 */
@interface BKGDSubPriceCell : BKGDCell

@end






/**
 进口税
 */
@interface BKGDTaxCell : BKGDCell

@end




/**
 特色描述
 */
@interface BKGDFeatureDescribeCell : BKGDCell

@end



@interface BKGDActivityCollectionViewCell : UICollectionViewCell

@property(nonatomic,strong) UILabel *titleLabel;
@property(nonatomic,strong) UILabel *subTitleLabel;

@end

/**
 促销
 */
@interface BKGDPromotionCell : BKGDCell

@end


/**
 发货地
 */
@interface BKGDSendAddressCell : BKGDCell

@end


/**
 7天无理由退货
 */
@interface BKGD7daysReturnCell : BKGDCell

@end


/**
 SKU选择
 */
@interface BKGDSKUCell : BKGDCell

@end



/**
 限购
 */
@interface BKGDQuotaCell : BKGDCell

@end



@interface BKGDPTitleCell : BKGDCell

@end





/**
 商品详情参数cell
 */
@interface BKGDPropertyCell : BKGDCell

@property(nonatomic,strong) UILabel *titleLabel;
@property(nonatomic,strong) UILabel *contentLabel;

@end


@interface BKGDEvaluatTitleCell : BKGDCell

@property(nonatomic,strong,readonly) UILabel *leftLabel;
@property(nonatomic,strong,readonly) UIButton *rightBtn;

@end


@class BKGDEvaluationCell;

@protocol BKGDEvaluationCellDelegate <NSObject>

@required
/**
 底部按钮被电击
 */
-(void)evaluationCell:(BKGDEvaluationCell*)cell bottomButtonTouched:(UIButton*)button;

@end



/**
 商品详情页的评论cell
 */
@interface BKGDEvaluationCell : BKGDCell

@property(nonatomic,strong,readonly) UILabel *topLeftLabel;
@property(nonatomic,strong,readonly) UILabel *topRightLabel;
@property(nonatomic,strong,readonly) UIImageView *avatarImageView;
@property(nonatomic,strong,readonly) UILabel *infoLabel;

@property(nonatomic,strong,readonly) UILabel *contentLabel;
@property(nonatomic,strong,readonly) UILabel *propertyLabel;
@property(nonatomic,strong,readonly) UIButton *bottomButton;

@property(nonatomic,strong,readonly) BKGDGradeView *gradView;

@end
